﻿package org.openChart.meta 
{
	import flash.filters.ConvolutionFilter;
	
	/**
	 * The sticks of an axis.
	 * 
	 * @author Chongyuan
	 */
	public class Stick extends BaseObject
	{

		// The count of repeat.
		private var repeat_:uint;
		private var stickLine_:StickLine;
		private var showStickLine_:Boolean;
		
		public function Stick( object:Style, repeat:uint = 1, showStickLine:Boolean = false) 
		{
			this.repeat = repeat;
			this.showStickLine = showStickLine;
			super(object);
		}
		
		public function set repeat( repeat_:uint ):void
		{
			this.repeat_ = repeat_;
		}
		
		public function get repeat():uint
		{
			return this.repeat_;
		}
		
		public function set stickLine( stickLine_:StickLine ):void
		{
			this.stickLine_ = stickLine_;
		}
		
		public function get stickLine():StickLine
		{
			return stickLine_;
		}
		
		public function set showStickLine( showStickLine_:Boolean ):void
		{
			this.showStickLine_ = showStickLine_;
		}
		
		public function get showStickLine():Boolean
		{
			return this.showStickLine_;
		}
		
		public function toString():String
		{
			var str:String = "\nObject:Stick ";
			str += "[repeat=" + repeat + "]";
			str += "[showline" + showStickLine + "]";
			return str;
		}
	}
	
}